From 3e56660c18170260e2720b8017d022c1665b3591 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 8 Jul 2008 12:24:14 +0100 Subject: [PATCH] stubdom: Fix modified_memory size calculation >> is less prioritized than - Signed-off-by: Samuel Thibault --- tools/ioemu/target-i386-dm/exec-dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ioemu/target-i386-dm/exec-dm.c b/tools/ioemu/target-i386-dm/exec-dm.c index 1df1ed96c2..74235675f9 100644 --- a/tools/ioemu/target-i386-dm/exec-dm.c +++ b/tools/ioemu/target-i386-dm/exec-dm.c @@ -573,8 +573,8 @@ void cpu_physical_memory_rw(target_phys_addr_t _addr, uint8_t *buf, #ifdef CONFIG_STUBDOM if (logdirty_bitmap != NULL) xc_hvm_modified_memory(xc_handle, domid, _addr >> TARGET_PAGE_BITS, - (_addr + _len + TARGET_PAGE_SIZE - 1) >> TARGET_PAGE_BITS - - _addr >> TARGET_PAGE_BITS); + ((_addr + _len + TARGET_PAGE_SIZE - 1) >> TARGET_PAGE_BITS) + - (_addr >> TARGET_PAGE_BITS)); #endif mapcache_unlock(); -- 2.30.2